Added logic to handle block rotation at the edges of the screen,  added class to hold chain statistics