added timer and player movement