implemented constraints for camera movement