Can't reinstall Mac OS X
shut down the mac, boot it up in Recovery mode, CMD + R, go to disk utility, select your main disk, and erase it, format it as Mac extended, 
close that window, go to Reinstall MAC OS X, and then follow the instructions, thats the best, way to re-install, it will never go wrong.