Moved board_piece code into seperate file.