added sprites, and flipping properly