Added Box collision detection