Made classes Field and Piece to make code more modular