Optimized from rects to ints in level and render package