Refactor code and replace grass with floor.