Simulating Banker's Algorithm. Referenced project: github.com/MaoAiz/Deadlocks