refactored camera position and angle to be in a state variable to prevent confusion with local x,y,angle variable names