Created a camera function that reverses the canvas coordinates to world coordinates
Corrections to the camera functionality