finished game api, snake is now working(just prototype snake)