First implementation of board state and event handler

First implementation of board state with an event handler that updates the board state