added prevention of going off screen, added screen fading and text flashing