Fix bug in tryMove