#include <stdio.h>
#include <stdbool.h>
#include "helpers.c"
#define WIDTH 60
#define HEIGHT 40
#define DEBUG false
unsigned int startLength = 0;
unsigned int startApples = 0;
unsigned int currentTick;
int snake[WIDTH*HEIGHT];
unsigned int snakeLength;
unsigned int snakeX;
unsigned int snakeY;
int snakeDirX;
int snakeDirY;
unsigned int numApples;
void spawnApple();
void tick();
void draw();