Fixing bugs and display character sprite correctly