Refactored any detected duplicated code in order to shorten the total lines of code. Focus on maintainability. Modified the currenState Session to instead take a STATE constant instead of a plaintext value