debugged all code  except for renderer (GLFW memory leak >.<)