Fixed a bug where the camera didnt move to both sides if it was at the edge