Refactor updatePlayer to be more efficient
Make inner timer class static