Moved board logic to separate file.
Moved piece logic to separate file.