Well I tried sudo apt-get install pygame and I got this error.
jj@jj-Latitude-D610:~$ sudo apt-get install pygame
[sudo] password for jj:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
P.S: Is there a spacific way that I should post code?