added timer class and fps limiter