changed collide to this.layer instead of layer