Fixed getMoves to return proper arraylist