correct pattern to play on matrix

- error caused due to wrong port assignments and multiple shift operations