finished code for 150x150 matrix