Small refactoring of getMax/MinMove methods