Worked on getMove function