Refactoring and added Ground class inside environment.js