Partially implemented template window.
Added class field to change the state of the board.
Added class MainPage for interaction with user.