put the popup character pictures in a method. also private-ised some
fields