Fixed the awful bug in getPossibleMoves thanks to the miraculous MICHAEL