added debug system for displaying framerate