the code of me porting my grade 11 summative game from c to python