Added draw(Graphics g) function to Animation