Attempted at adding in buffering graphic.
Didnt go very well but have cleaned up the code  little by putting things in the proper place visa vi onX events.