fix update bug. Thanks to Martin Zeitler!
use btoa/atob for localStorage games,minor fixes