Added event polling to play loops to stop window from 'not responding'