fix moveIsValid method on BoardImpl