fixes bug in turnleft function