few fixes
A GUI version using Pygames