made the rendering more flexible, added:
renderSprite(int x, int y, Sprite sprite);
rederArrey(int x, int y, int width, int[] pixels);