basic game window handling
loop = true