Changed how time is handled

Changed how time logic is handled and added graphical representation of time remaining.