graphicslib mainly for collision detection