Changes to fix empty possible moves