class Field { constructor(x, y, isEmpty) { this.xField = x; this.yField = y; this.isFieldEmpty = isEmpty; } getCoordinates(){ return this.xField + this.yField; } getStatus(){ return this.isFieldEmpty; } }