Changed Logic

Class changed from "Current time and last frame time" logic to "last frame time and previous time". Which helps us to have better control over fps in anywhere of the program.