Improved the inheritance of Player and Ghost from MovingSprite.

Added an update-method in the super class and used the template-pattern.
Added docstring comments.