Implements so that the character doesnt fall through platforms.