Added sprite culling. More optimization necessary