libgtktactoe improvements

I added a few things to libgtktactoe.c in order to make it more strict. I also cleaned up the file a bit...