Added and ported sprite code from nhns, not completely ported, but functional