Credits to http://pygametutorials.wikidot...