switch character sprite and added a counter to slow down player movement