Changed getValidMoves() in AI and BoardManager