Simplified threading code using std.parallelism.
Changed animation from thread to timer.