Implemented the moves on the board