moved charactor sprite handling to view