Added 'volatile' to DisplayThread.shouldContinue for thread safety