Refactored Code, Added logic for player hitting visualizer boundaries and placeholder for death animation.