Converted WinMain into main