Refactored game initialization functions