Fixed the right contact method but also found problems with the isGrounded method.
Implemented animation