Creating an interactive game using PHP