Implementing End Sheet

Obviously, cleaner code, but I'll fix that in the next pull request.