implemented SingletonPattern

- implemented SingletonPattern in class "ServerConnection" and "GUI"
- removed static attributes from some variables
- put some parts of code in new methods (createGrid, checkRateversuch)