Modified struct coords with way arameter