Final optimization. Now 50*50 finished :)