https://kodejava.org/how-do-i-get-the-state-of-a-thread/
How do I get the state of a thread?