Google is secretly building a social-gaming startup, part of its effort to create fledgling companies within the internet-search giant.