bugfix in buyplayerwindow (checking for correct format)