Refactor gameon -> lib