Added a lot of new features

Now the snake can't leave the map, dies if it touches itself, resets the game, etc.