fixed bug with left side detection resetting itself