Single player mode implemented, bug fixes