moving towards Q-Learning : implemented Q class and StateAction