fixed a bug eric found in isvalidmove