works on window and linux. need some cleanup

systematic call to refresh,
blit done during refresh

next step, try to remove blit in do_refresh
works with linux and windows.

cleanup of the refresh functions