Refactoring Actions.java class
Modifying states to be represented by letters.