Introduce classes for 'board' and 'move', made code more readable