Added datemode, maxtemp and started pong logic