Why not only check for collisions? You don't need to find out whether it's a left collision or not.
Record the players x and y co-ords.
Check for movement control moving the player along the x-axis.
If movement causes collision, restore old x value.
Check for movement control moving the player along the y-axis.
If movement cause collision, restore old y value.
Draw_everything()
DONE
Just make sure you draw everything last. No movement should be done, or corrected AFTER the drawing is done, as you will see the effects of positions moving due to collisions.
Record the players x and y co-ords.
Check for movement control moving the player along the x-axis.
If movement causes collision, restore old x value.
Check for movement control moving the player along the y-axis.
If movement cause collision, restore old y value.
Draw_everything()
DONE
Just make sure you draw everything last. No movement should be done, or corrected AFTER the drawing is done, as you will see the effects of positions moving due to collisions.