Added sprite loading and state system