UCT algorithm written. Still needs debugging