added window.game.isLoggedIn()