Server side and client side code for the treasure hunt competition!