add player to window object