Add getXSpeed and getYSpeed to hero class.