Added 4x4 Grid
Added error checking for failed fopen()s.