Fix bugs and play end music