repaint of bricks optimized + TODO