implemented L03 paired programming assignment part 2 into the Endgamel class