implemented collision detection for level