refine the DiscreteEnvironment.py and SimpleEnvironment.py, finish all the functions, and tested