Snake game (functional approach test)