Changed Graphics to Double Buffered Graphics to stop the flickering