Changed the renderScreen function to the more resource friendly fps based requestAnimationFrame method