rewrite game app