Bug fix for double jump part of player movement script