code for cell painting game