added gameover redirect, refactored next question function

started on patch route to save user scores, not working, but also not breaking the site