Line19 

change this.rightDownSideY = x + 2; to this.rightDownSideY = y + 2;