created if statement to get the number clicked

created if statement to get the number clicked.  ALSO, copied over my
work from the encapsulation into the pages which is "display.py" in
this assignment, to give me a frame of reference, but it will be
deleted in due time.