Put fps counting in separate class