The only reason this crashes is because my method of clearing many blank squares is terrible. In the windows one, it adds each ajacent blank square into a queue, and then goes through each one doing the same thing again. Mine has a funciton that sets the squares around it to visible if they're empty and calls itself on them if they have no value (the value of the number of close mines, precalucalted at the start). This method is very lazy and slow, causing the sever not to crash, but to exceed the amount of memory allowed for this script to use. You can change this limit, but I'm not going to.