Refactor code for how player make a move.