added paintComponent function that allows for variable x,y values when drawing cat