added control bar and fixed bug with sprites