(y + scrolly)&255 was supposed to be with the tile stuff, not changing x,y