bug in validMove