restruct code
single game allmost done