refactors applyMove function in GamePage._setupGame