Updated InitGame to support different window sizes