Implemented vector class and re-did game loop.