Refactor of gamefield class: add states (like state machine) and made more simple logic