Cillian Murphy got a goal and an assist as John Cotter’s side earned a deserved win against Costa Rica.