removed code and added collision detection engine