new get_action func in Game class + comments

New get_action function, which given an old state and new state find the
corresponding action to be taken.
Random comments are also added.