Team project for newMoves class with loop function for invalid inputs