Factored out board and piece into classes