diff --git a/src/kode/Tournament.cpp b/src/kode/Tournament.cpp
index 649964465b05f9ae2439b1d00a29a6e667d677f0..d02dede83822cd8fa9f06aef6b2a9371ac34c99b 100644
--- a/src/kode/Tournament.cpp
+++ b/src/kode/Tournament.cpp
@@ -11,6 +11,7 @@
 #include <fstream>  //  ifstream, ofstream
 #include "LesData2.h"
 #include "player.h"
+#include "functions.h"
 
 using namespace std;
 
@@ -48,7 +49,10 @@ void Tournament::startNewTournament()
 
 void Tournament::enterResults()
 {
+    for (int i = 0; i < nrOfTables; ++i)
+    {
 
+    }
 }
 
 void Tournament::printTables()
@@ -59,6 +63,31 @@ void Tournament::printTables()
              << " please add or remove players so that there is exactly two players per table." << endl;
         return;
     }
+    white.clear();
+    black.clear();
+
+    currentRound++;
+    if(currentRound==1)
+    {
+        vector<Player*> playersPlaying = playerList;
+        for (int i = 0; i < nrOfTables; ++i)
+        {
+            white.push_back(playersPlaying[playersPlaying.size()-1]->playerID);
+            playersPlaying.pop_back();
+            black.push_back(playersPlaying[playersPlaying.size()-1]->playerID);
+            playersPlaying.pop_back();
+            cout << endl << "Table " << i << ": \t"
+            <<
+        }
+    }
+    else
+    {
+        vector<Player*> playersPlaying = sortedRankings;
+        sortRanking();
+        do {
+
+        }while(playersPlaying > 0);
+    }
 }
 
 bool Tournament::canStartRound()
diff --git a/src/kode/searchByID.cpp b/src/kode/searchByID.cpp
index 9f68cd5b009a5ab3474a5ad4dc6e7831895e2e1e..2e84d62beaef81b5cdc21c2311d38a63b22bb3a1 100644
--- a/src/kode/searchByID.cpp
+++ b/src/kode/searchByID.cpp
@@ -11,6 +11,7 @@ int searchByID(int id, int list)
     vector<Player*> listToUse;
     if (list == 1)
     {
+        listToUse=playerList;
     }
     else if (list == 2)
     {