Added a setBoard function, also added TODO comments all over to fix buggy or bad code