added a game over state

added a gameover state in my snake project