Added collision detection for level one