Working on making the error catching work not only on server side but also client side. i.e. JS instead of just PHP. The backend will still be there though to prevent people from cheating using the console. Still need to add the clickable class to the right cards using JQuery.