ConvolutionMax function created, still wrong