Pseudocode of the game
Django logic task