The rise of interest in sustainable software had led to a focus on energy efficiency, and consideration of code smells during software development. This eventually requires software engineering teachers to focus on topics such as code smells in their software engineering courses to bring awareness to students on the impact of code smells and bad design choices not just for the software but also for the environment. Games have been used in the literature to teach new concepts as they help novice programmers with a better learning experience. In this paper, we propose a desktop game named Refactor4Green to teach code smells and refactoring to novice developers and learners. The core idea of the game is to introduce code smells, refactoring choices through the theme of green environment. We conducted a preliminary study with university students and got positive feedback from 83.06% of the participants.