Class Move.java and Class Square.java create a isValid Method