Implemented random task choice in TaskPool.java