fixed collision detection, added moving body