Fixing canMoveToward issue