SinglePlayer mode added. Bug fixes.