collision detection and screenshots

Working on collision detection and improving the screenshot function