wrote newBoard, printBoard and isOccupied