Sidebar shows player how many encounters remain

Did some janky coding in sidebar.js, but now update counts how many
encounters remain and prints it to the side