fixed threads bug, unfortunately bug with retrieving game after exit through escape