add nextMove function to controller