almost fully working...logic error with repaint