Created WinMain function