moving loop into engine and rotation camera based on mouse movement+click