Implemented contact listener to handle double jumping issues