Snake class now has direction attr, so when there is no putton pressed the snake crawls at the same(last) direction. The direction is changed in the change_of_dir? method in the game.rb file