Added test for getMove and fixed bug.