fixed bug in available moves