game thread, terrain drawing