added getMove function