Java project on managing a system of commands