cleaning the code for candy bird