added flip function re doing how to draw stuff