Simplifying the Single Player mode. Removed duplication of code.