changes to getAvailableMoves, fixing test in progress.