created update_board method. Was previously nested in the turn method.