implemented snake feature of the game, collisions with tails