added input and output for boards and logic for move on the board