simplify 'play_move' function