refactored FPS to rounded number
changed to usage of requestAnimationFrame for game loop
merged head
fixed fail merging