this is how im calling it
this.horizontalWrap(this.player)
and here is the function
horizontalWrap(sprite) { const halfWidth = s