Mini-game. Test task from Naumen. Ruby on Rails