implemented fsm for main to deal with when player is moving and when board state is valid, added hand detection to getBoard