Collision implemented(not fully working)