Added board tests and cleaned up various parts of the code
Added piece tests