Fix: Menu functionality and timer

- Add function to generate a new puzzle
- Check if puzzle was solved by man or machine
- Reduce amount of calls to search function