soving problems with relative coordinates

Arrays must be initialized with zero values