Changed physics engine to use strategy pattern.