graphics implemented using pygame