PHP console version of 2048