Fixed Nemesis movement, and isPieceInvincible.
Added catch for IndexErrors in genMoves.