function can now tell if the move is possible.