Added portal cooldown and enter state resetting, changed gamemode check to invulnerable check (more accurate)

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>