Added left/right movement checks.