getType method for Move.java