Turn Based Strategy and Role Playing Game engine in PHP