Fixed palette weirdness and handled sprite id's properly

Fixed palette weirdness and handled sprite id's properly