code cleanup

Removed unneeded functions for obstacles sorting and swapping. As well
as outdated camera functions in the camera region.