getPosition(id) {
    if (id == undefined) {
      throw new TypeError("No id was specified for getPosition method.");
    } else if (this.body.nodes[id] == undefined) {
      throw new ReferenceError(
        `NodeId provided for getPosition does not exist. Provided: ${id}`
      );
    } else {
      return {
        x: Math.round(this.body.nodes[id].x),
        y: Math.round(this.body.nodes[id].y),
      };
    }
  }
Retrieves the x y position of a specific id.
@param {string} id The id to retrieve.
@throws {TypeError} If no id is included.
@throws {ReferenceError} If an invalid id is provided.
@returns {{ x: number, y: number }} Returns X, Y canvas position of the node with given id.