Eliminated unnecessary getWinningMove function