Stable dynamics of spikes in solutions to a system of reaction-diffusion equations