Snooker game in python