Remove the gameloop library

Replace with custom made function which makes use of the DOMHighResTimestamp instead of Date()'s